package net.oschina.app.protocol.me_messager;

import net.oschina.app.base.BaseProtocol;
import net.oschina.app.bean.MessagesBean;

import retrofit2.Call;

/**
 * Created by wei03 on 2017/1/14.
 */

public class NewsMessageProtocol extends BaseProtocol<MessagesBean> {
    private String uid = "3226664";
    private String mPageIndex = "0";
    private String pageSize = "20";

    @Override
    protected Call getCall(String pageIndex) {
        return mApiService.getMessagesBean(uid,mPageIndex,pageSize);
    }

    @Override
    protected String getIndex() {
        return mPageIndex;
    }

    @Override
    protected String getType() {
        return "message_list";
    }
}
